<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('concessao/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?idconcessao='.$form->getObject()->getIdconcessao() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php if (!$form->getObject()->isNew()): ?>
    <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
     <div>
        <fieldset class="formulario">
            <legend class="padraoCinza">Concessão</legend>
            <div class="v">
                <?php
                    echo $form['idpedido']->renderLabel();
                    echo $form['idpedido']->renderError();
                    echo "<div class=\"contensorinput\">".$form['idpedido']->render()."</div>";
                ?>
            </div>
            <div class="d">
                <?php
                    echo $form['envioudocumentos']->renderLabel();
                    echo $form['envioudocumentos']->renderError();
                    echo "<div class=\"contensorinput\">".$form['envioudocumentos']->render()."</div>";
                ?>
            </div>
            <div class="db">
                <?php
                    echo $form['dataconcessao']->renderLabel();
                    echo $form['dataconcessao']->renderError();
                    echo "<div class=\"contensorinput\">".$form['dataconcessao']->render()."</div>";
                ?>
            </div>
            <div class="v">
                <?php
                    echo $form['trechoviagem']->renderLabel();
                    echo $form['trechoviagem']->renderError();
                    echo "<div class=\"contensorinput\">".$form['trechoviagem']->render()."</div>";
                ?>
            </div>
            <div class="clear"></div>
            <hr />
            <div class="db">
                <?php
                    echo $form['numerobanco']->renderLabel();
                    echo $form['numerobanco']->renderError();
                    echo "<div class=\"contensorinput\">".$form['numerobanco']->render()."</div>";
                ?>
            </div>
            <div class="db">
                <?php
                    echo $form['nomebanco']->renderLabel();
                    echo $form['nomebanco']->renderError();
                    echo "<div class=\"contensorinput\">".$form['nomebanco']->render()."</div>";
                ?>
            </div>
            <div class="db">
                <?php
                    echo $form['nomeagencia']->renderLabel();
                    echo $form['nomeagencia']->renderError();
                    echo "<div class=\"contensorinput\">".$form['nomeagencia']->render()."</div>";
                ?>
            </div>
            <div class="db">
                <?php
                    echo $form['contacorrente']->renderLabel();
                    echo $form['contacorrente']->renderError();
                    echo "<div class=\"contensorinput\">".$form['contacorrente']->render()."</div>";
                ?>
            </div>
            <div class="d">
                <?php
                    //echo $form['idconcessao']->renderLabel();
                    //echo $form['idconcessao']->renderError();
                    echo "<div class=\"contensorinput\">".$form['idconcessao']->render()."</div>";
                ?>
            </div>
        </fieldset>     
    </div>
    </br>    
    <div align="center">
        
        &nbsp;<a href="<?php echo url_for('concessao/index') ?>">Voltar</a>
          <?php if (!$form->getObject()->isNew()): ?>
            &nbsp;<?php echo link_to('Apagar', 'concessao/delete?idconcessao='.$form->getObject()->getIdconcessao(), array('method' => 'delete', 'confirm' => 'Você confirma esta operação?')) ?>
          <?php endif; ?>
<!--          <input type="submit" value="Save" />-->
        <button type="submit" value="Salvar" class="botaoSalvarCinza" >Salvar alterações</button>
    </div>
    </br>
      <?php //echo $form ?>